package com.zzxx.photograph.service;

import com.zzxx.photograph.domain.User;
import com.zzxx.photograph.exception.LoginException;

public interface UserService {
    boolean usernameIsExists(String username);

    boolean register(User user);

    boolean activeUser(String code);

    User login(String username, String password) throws LoginException;

    void updatePasswordByUsername(String username, String password);

    User getUserByUid(int uid);

    void updateInfoByUid(String uid, User user);

    void deleteUserByUid(String uid);

    void sendMsg(String name, String email, String s);

    boolean sendEmail(String email);


}
